package com.wunong.smart.address.application.request;

import com.wunong.smart.address.client.param.DeleteUserAddressParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 删除用户地址
 *
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class DeleteUserAddressRequest extends BaseUserAddressRequest {

    public static DeleteUserAddressRequest of() {
        return new DeleteUserAddressRequest();
    }

    public static DeleteUserAddressRequest of(DeleteUserAddressParam param) {
        DeleteUserAddressRequest request = DeleteUserAddressRequest.of();
        request.initBasic(param);
        request.setUserId(param.getUserId());
        request.setId(param.getAddressId());
        return request;
    }

}
